﻿using System;

namespace diantou.dataModel
{
    /// <summary>
    /// 问题草稿
    /// </summary>
    [fastCSharp.emit.jsonSerialize(IsAllMember = true)]
    [fastCSharp.emit.dataSerialize(IsReferenceMember = false, IsMemberMap = false)]
    [fastCSharp.code.cSharp.sqlModel]
    public partial class questionDraft
    {
        /// <summary>
        /// 最大话题标识长度
        /// </summary>
        public const int MaxTopicIdLength = 100;
        /// <summary>
        /// 用户标识
        /// </summary>
        [fastCSharp.emit.dataMember(PrimaryKeyIndex = 1)]
        public int UserId;
        /// <summary>
        /// 标题
        /// </summary>
        [fastCSharp.emit.dataMember(MaxStringLength = question.MaxTitleLength)]
        public string Title;
        /// <summary>
        /// 问题描述
        /// </summary>
        [fastCSharp.emit.dataMember(MaxStringLength = 256 << 10)]
        public string Remark = string.Empty;
        /// <summary>
        /// 话题标识集合
        /// </summary>
        [fastCSharp.emit.dataMember(MaxStringLength = MaxTopicIdLength)]
        public string TopicIds = string.Empty;
    }
}
